<?php


namespace app\repository\Websocket;


use app\model\RoomDevice;

class WebRepository extends BaseRepository
{



    public static function checkAuthor($author)
    {
        $authorList = RoomDevice::query()->select("author")->get()->toArray();
        $list = ["develop","admin","test","system"];
        $authorList = array_column($authorList,"author");
        if (in_array($author,$list) || in_array($author,$authorList)){
            return true;
        }
        return false;

    }
}